<%-- 
    Document   : index
    Created on : Jul 2, 2011, 11:34:04 AM
    Author     : PhongLK60473
--%>

<%@page contentType="text/html" pageEncoding="UTF-8"%>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"
   "http://www.w3.org/TR/html4/loose.dtd">

<html>
    <head>
        <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
        <title>JSP Page</title>
    </head>
    <body>
        <%
            HttpSession sess = request.getSession();
            RequestDispatcher rd;
            if (sess.getAttribute("isLogin")==null){
                rd = request.getRequestDispatcher("Login.jsp");
                rd.forward(request, response);
            } else {
                rd = request.getRequestDispatcher("View.jsp");
                rd.forward(request, response);
            }

        %>
    </body>
</html>
